﻿@{
    var pic=ViewData["PicPath"] as string;
    if(!string.IsNullOrEmpty(pic))
    {
       pic=pic.Replace("_B.", "_S.");
    }
    var url = Request.Url.AbsoluteUri;
    var MyInfo=url.IndexOf("MyInfo")>=0?"selected":string.Empty;
    var EditInfo=url.IndexOf("EditInfo")>=0?"selected":string.Empty;
    var MyCharge=url.IndexOf("MyCharge")>=0?"selected":string.Empty;
    var EditPwd = url.IndexOf("EditPwd") >= 0 ? "selected" : string.Empty;
    var MyMessage = url.IndexOf("MyMessage") >= 0 || url.IndexOf("messagedetail")>=0 ? "selected" : string.Empty;
}
<div class="vipphoto">
    <div id="vipPic" class="vipphotoborder" style="width: 120px; height:120px;overflow: hidden;">
        <img src="@pic" width="120px"/>
    </div>
</div>
<div class="updatephoto">
    <a href="/vip/uploadpic">更换照片</a>
</div>
<div class="vipmenu">
    <ul>
        <li><a href="/vip/MyInfo" class="@MyInfo">个人资料</a></li>
        <li><a href="/vip/EditInfo" class="@EditInfo">资料修改</a></li>
        <li><a href="/vip/MyCharge" class="@MyCharge">我的积分</a></li>
        <li><a href="/vip/EditPwd" class="@EditPwd">密码修改</a></li>
        <li><a href="/vip/MyMessage" class="@MyMessage">我的信息</a></li>
    </ul>
</div>
